package sample.hystrix.client.consumer.controller;

import org.springframework.web.bind.annotation.*;
import sample.hystrix.client.consumer.services.ISampleService;

import javax.annotation.Resource;

@RestController
@RequestMapping("consumer")
public class ConsumerController {

    @Resource
    private ISampleService sampleService;

    @GetMapping("/test")
    public String test(@RequestParam(value="str") String str){
        return sampleService.test(str);
    }
}
